home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- # remove historical files
-
- userGuide="Flip4Mac WMV Player User Guide.pdf"
- /bin/rm ~/Desktop/"$userGuide"
-
- prefPaneNameOnDesktop="Flip4Mac WMV Registration"
- /bin/rm ~/Desktop/"$prefPaneNameOnDesktop"
-
- preferencesPath="/Library/Preferences"
-
- internetPluginsPath="/Library/Internet Plug-Ins"
- windozeMediaPluginName="Windows Media Plugin"
- disabledFolderName="Disabled Plug-Ins"
- appFolderPath="/Applications/Flip4Mac"
-
- /bin/rm -rf /Applications/WMV\ Player.app/
-
- # New application files and registration link
-
- /bin/rm -rf "$appFolderPath"/WMV\ Player.app/
- /bin/rm "$appFolderPath"/Users\ Guide.rtf
- /bin/rm "$appFolderPath"/Flip4Mac\ WMV\ User\ Guide.pdf
- /bin/rm "$appFolderPath"/WMV\ Upgrade
-
- # Remove QT components
-
- /bin/rm -rf /Library/QuickTime/Flip4Mac\ WMV\ Import.component/
- /bin/rm -rf /Library/QuickTime/Flip4Mac\ WMV\ Export.component/
-
- # Remove web browser plug-ins
-
- /bin/rm -rf "$internetPluginsPath"/Flip4Mac\ WMV\ Plugin.plugin/
- /bin/rm -rf "$internetPluginsPath"/Flip4Mac\ WMV\ Plugin.webplugin/
-
- /bin/rm -rf "$internetPluginsPath/$disabledFolderName"/Flip4Mac\ WMV\ Plugin.plugin/
- /bin/rm -rf "$internetPluginsPath/$disabledFolderName"/Flip4Mac\ WMV\ Plugin.webplugin/
-
- # move windows media player back into place
-
- if [ -d "$internetPluginsPath/$disabledFolderName/$windozeMediaPluginName" ] ; then
- if [ ! -d "$internetPluginsPath/$windozeMediaPluginName" ] ; then
- /bin/mv -f "$internetPluginsPath/$disabledFolderName/$windozeMediaPluginName" "$internetPluginsPath/"
- fi
- fi
-
- # remove the disabled plug-ins folder if it is empty
- /bin/rm "$internetPluginsPath/$disabledFolderName/.DS_Store"
- /bin/rmdir "$internetPluginsPath/$disabledFolderName"
-
- # old prefpane
- /bin/rm -rf /Library/PreferencePanes/WmvPlayer.prefPane/
- # new prefpane
- /bin/rm -rf /Library/PreferencePanes/Flip4Mac\ WMV.prefPane/
-
- # Change mms URLs back to windows media player
- /usr/bin/defaults write com.apple.LaunchServices LSHandlers -array-add '<dict><key>LSHandlerRoleAll</key><string>com.microsoft.mediaplayer</string><key>LSHandlerURLScheme</key><string>mms</string></dict>'
-
-
- # Final clean up: remove the uninstaller and app folder
- /bin/rm -rf "$appFolderPath"/Flip4Mac\ Uninstaller.pkg/
- /bin/rm -rf "$appFolderPath"/Flip4Mac\ WMV\ Uninstaller.pkg/
- /bin/rm "$appFolderPath/.DS_Store"
- #/bin/rmdir "$appFolderPath"
-
- exit 0;
-